import request from "@/utils/request";

//按属目查询
export function plantByGenusId(genusId) {
  return request({
    url: "/plant/plant/plantByGenusId",
    method: "GET",
    params: {
      genusId: genusId
    }
  });
}

//按月份查询
export function plantByMonth(month) {
  return request({
    url: "/plant/plant/plantByMonth",
    method: "GET",
    params: {
      month: month
    }
  });
}

//根据名称查询
export function plantByName(name) {
  return request({
    url: "/plant/plant/plantByName",
    method: "GET",
    params: {
      name: name
    }
  });
}

//根据属性查询
export function getPlantByGenusName(genusName) {
  return request({
    url: "/plant/plant/getPlantByGenusName",
    method: "GET",
    params: {
      genusName: genusName
    }
  });
}

//根据id查询种植
export function plantByBreedId(plantId) {
  return request({
    url: "/plant/plant/plantById",
    method: "GET",
    params: {
      name: plantId
    }
  });
}

//根据ID查询
export function plantById(id) {
  return request({
    url: "/plant/plant/plantById",
    method: "GET",
    params: {
      plantId: id
    }
  });
}

//根据科目
export function plantByFamily(name) {
  return request({
    url: "/plant/plant/getPlantByFamilyName",
    method: "GET",
    params: {
      familyName: name
    }
  });
}
